package com.qnbc.mystery.service.impl;

import java.util.List;

import com.qnbc.mystery.pojo.domain.FoodsAboutMe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qnbc.mystery.mapper.FoodsAboutMeMapper;
import com.qnbc.mystery.service.IFoodsAboutMeService;

/**
 * 关于我们Service业务层处理
 *
 * @author guzj
 * @date 2024-01-24
 */
@Service
public class FoodsAboutMeServiceImpl implements IFoodsAboutMeService
{
    @Autowired
    private FoodsAboutMeMapper foodsAboutMeMapper;

    /**
     * 查询关于我们
     *
     * @param id 关于我们主键
     * @return 关于我们
     */
    @Override
    public FoodsAboutMe selectFoodsAboutMeById(Long id)
    {
        return foodsAboutMeMapper.selectFoodsAboutMeById(id);
    }

    /**
     * 查询关于我们列表
     *
     * @param foodsAboutMe 关于我们
     * @return 关于我们
     */
    @Override
    public List<FoodsAboutMe> selectFoodsAboutMeList(FoodsAboutMe foodsAboutMe)
    {
        return foodsAboutMeMapper.selectFoodsAboutMeList(foodsAboutMe);
    }

    /**
     * 新增关于我们
     *
     * @param foodsAboutMe 关于我们
     * @return 结果
     */
    @Override
    public int insertFoodsAboutMe(FoodsAboutMe foodsAboutMe)
    {
        return foodsAboutMeMapper.insertFoodsAboutMe(foodsAboutMe);
    }

    /**
     * 修改关于我们
     *
     * @param foodsAboutMe 关于我们
     * @return 结果
     */
    @Override
    public int updateFoodsAboutMe(FoodsAboutMe foodsAboutMe)
    {
        return foodsAboutMeMapper.updateFoodsAboutMe(foodsAboutMe);
    }

    /**
     * 批量删除关于我们
     *
     * @param ids 需要删除的关于我们主键
     * @return 结果
     */
    @Override
    public int deleteFoodsAboutMeByIds(Long[] ids)
    {
        return foodsAboutMeMapper.deleteFoodsAboutMeByIds(ids);
    }

    /**
     * 删除关于我们信息
     *
     * @param id 关于我们主键
     * @return 结果
     */
    @Override
    public int deleteFoodsAboutMeById(Long id)
    {
        return foodsAboutMeMapper.deleteFoodsAboutMeById(id);
    }
}
